//
//  ViewController.swift
//  1.13.Presenting Custom Sharing Options with UIActivityViewController
//
//  Created by joker on 15/7/22.
//  Copyright (c) 2015年 joker. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        
        let itemsToShare = [
            "Item 1" as NSString,
            "Item 2" as NSString,
            "Item 3" as NSString
        ]
        
        let activityController = UIActivityViewController(activityItems: itemsToShare, applicationActivities: [StringReverserActivity()])
        
        presentViewController(activityController, animated: true, completion: nil)
    }
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

